package top.go2do.tagCategory.exception;

/**
 * @Description
 * @Author xingyj
 * @CreateTime 2025/6/18 14:21
 */
public enum TagCategoryErrorCode {
    CATEGORY_NAME_EXIST(4401, "category.name_exist"),
    CATEGORY_ID_NOT_EXIST(4402, "category.id_not_exist"),
    ;

    private final int code;
    private final String msgKey;

    TagCategoryErrorCode(int code, String msgKey) {
        this.code = code;
        this.msgKey = msgKey;
    }

    public int getCode() {
        return code;
    }

    public String getMsgKey() {
        return msgKey;
    }
}
